home *** CD-ROM | disk | FTP | other *** search
- 142
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- GetFolder
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows and Macintosh
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baGetFolder displays a directory dialog box and returns the folder selected..
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baGetFolder( StartDir, Instruction, Flags, Caption, X, Y )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String, string, integer, string, integer, integer.
- --- RECORDSEPARATOR ---
- StartDir is the initial directory. Use "" for the current directory.
- --- RECORDSEPARATOR ---
- Instruction is the instruction to display to the user.
- --- RECORDSEPARATOR ---
- Flags modifies the behaviour of the dialog.
- --- RECORDSEPARATOR ---
- Caption is the caption of the dialog.
- --- RECORDSEPARATOR ---
- X is the horizontal position of the dialog.
- --- RECORDSEPARATOR ---
- Y is the vertical position of the dialog.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String.
- --- RECORDSEPARATOR ---
- Returns the folder selected, or "" if the user cancelled.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set folder = baGetFolder( "c:\temp", "Please select a folder to install into:", 1,
- --- RECORDSEPARATOR ---
- "Select a folder", -1, 0 )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- folder := baGetFolder( "c:\\temp", "Select installation directory", 0, "", 200, 200 )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- The flags argument allows you to change the way the dialog box looks and
- --- RECORDSEPARATOR ---
- behaves. There are two values defined.
- --- RECORDSEPARATOR ---
- 1
- --- RECORDSEPARATOR ---
- On
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
- , makes the dialog box a 32 bit Explorer style. If this style is not
- --- RECORDSEPARATOR ---
- available, for example if running under Windows 3.1, then a 16 bit style
- --- RECORDSEPARATOR ---
- dialog will be shown. The 16 bit Xtra/UCD ignores this style - it will always
- --- RECORDSEPARATOR ---
- show the 16 bit style dialog.
- --- RECORDSEPARATOR ---
- On
- --- RECORDSEPARATOR ---
- Macintosh
- --- RECORDSEPARATOR ---
- , uses Navigation Services if available.
- --- RECORDSEPARATOR ---
- 2
- --- RECORDSEPARATOR ---
- Displays a ΓÇÿNewΓÇÖ button to allow the user to create a new folder. On
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
- , this style is only available with the 16 bit style dialog. It cannot be
- --- RECORDSEPARATOR ---
- combined with Explorer style dialogs.
- --- RECORDSEPARATOR ---
- On
- --- RECORDSEPARATOR ---
- Macintosh
- --- RECORDSEPARATOR ---
- , Navigation Services dialogs will always show a New Folder
- --- RECORDSEPARATOR ---
- button.
- --- RECORDSEPARATOR ---
- The Caption argument is only used on
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
- if a Explorer style dialog box is
- --- RECORDSEPARATOR ---
- used. If it is an empty string, then the default "Browse for Folder" will be displayed.
- --- RECORDSEPARATOR ---
- It is ignored on
- --- RECORDSEPARATOR ---
- Macintosh
- --- RECORDSEPARATOR ---
- .
- --- RECORDSEPARATOR ---
- The X and Y values are the number of pixels from the top left corner of the screen.
- --- RECORDSEPARATOR ---
- Set X to -1 to position the dialog in the center of the calling Director/Authorware
- --- RECORDSEPARATOR ---
- window. Set X to -2 to position the dialog in the center of the screen.
- --- RECORDSEPARATOR ---
- Under OSX, Navigation Services will always be used.